package com.sc.mapper;

import com.sc.pojo.Title;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TitleMapper {
    int deleteByPrimaryKey(Integer id);
    int insert(Title record);
    int insertSelective(Title record);
    Title selectByPrimaryKey(Integer id);
    int updateByPrimaryKeySelective(Title record);
    int updateByPrimaryKey(Title record);
    List<Title> showTitle(@Param("sid") Integer  id);
    Title checkTitle(String title);
    int deleteAll(Integer[] ids);
    int updateAll(Integer[] ids);
    int updateOne(Integer ids);
    int deleteDetail(Integer id);
    int deleteExamDetail(Long id);
    int insertAll(List<Title> list);
    List<Title> levelExam(@Param("typeId") Integer typeId,@Param("difficulty") String difficulty);
    int insertExamInfo(@Param("examid") Long examid,@Param("tid") Integer tid);
    List<Title> addTitle(Integer num);
    List<Title> selectAllTitle(Integer[] ids);
    List<Title> myExamTest(Long examid);

}